From: Florian Müllner Date: Sat, 6 Sep 2014 15:21:52 +0000 (+0200) Subject: extensionPrefs: Remove version check from extensionAvailable() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2173 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=d209bc69b6c71e463816a03b41cb6522e4082365;p=gnome-shell.git extensionPrefs: Remove version check from extensionAvailable() It is confusing to treat outdated extensions as if they didn't exist in some places, but like any other extensions elsewhere. In particular gnome-tweak-tool still allows to launch prefs for them while making it clear to users that the extension will not work - opening the list of installed extensions in that case is unexpected and confusing. Just remove the version check for now, we will soon follow tweak-tool and use it to disable the extension switch instead. https://bugzilla.gnome.org/show_bug.cgi?id=736185 --- diff --git a/js/extensionPrefs/main.js b/js/extensionPrefs/main.js index 88e639acb..f56e5b6d4 100644 --- a/js/extensionPrefs/main.js +++ b/js/extensionPrefs/main.js @@ -59,14 +59,10 @@ const Application = new Lang.Class({ _extensionAvailable: function(uuid) { let extension = ExtensionUtils.extensions[uuid]; - let checkVersion = !this._settings.get_boolean('disable-extension-version-validation'); if (!extension) return false; - if (checkVersion && ExtensionUtils.isOutOfDate(extension)) - return false; - if (!extension.dir.get_child('prefs.js').query_exists(null)) return false;